com.willowtreeapps.android.shared.lv
Class FilterAdapter<T extends Sectionable>

java.lang.Object
  extended by android.widget.BaseAdapter
      extended by com.willowtreeapps.android.shared.lv.AmazingAdapter
          extended by com.willowtreeapps.android.shared.lv.FilterAdapter<T>
All Implemented Interfaces:
android.widget.AbsListView.OnScrollListener, android.widget.Adapter, android.widget.Filterable, android.widget.ListAdapter, android.widget.SectionIndexer, android.widget.SpinnerAdapter

public abstract class FilterAdapter<T extends Sectionable>
extends AmazingAdapter
implements android.widget.Filterable

User: mlake Date: 5/17/11 Time: 11:13 AM


Field Summary
 
Fields inherited from class com.willowtreeapps.android.shared.lv.AmazingAdapter
PINNED_HEADER_GONE, PINNED_HEADER_PUSHED_UP, PINNED_HEADER_VISIBLE, TAG
 
Fields inherited from interface android.widget.AbsListView.OnScrollListener
SCROLL_STATE_FLING, SCROLL_STATE_IDLE, SCROLL_STATE_TOUCH_SCROLL
 
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
 
Constructor Summary
FilterAdapter()
           
 
Method Summary
 void clear()
           
 int getCount()
           
 android.widget.Filter getFilter()
           
 T getItem(int position)
           
 long getItemId(int position)
           
 int getPositionForSection(int section)
           
 int getSectionForPosition(int position)
           
 String[] getSections()
           
 String[] getSectionsWithFullName()
           
 boolean isPositionBottomOfSection(int position)
           
 boolean isPositionTopOfSection(int position)
           
 void replaceDataInSection(String section, List<T> dataForSection)
           
 void setData(List<T> unSectionedList)
           
 void setDataManually(List<android.util.Pair<String,List<T>>> data)
           
 
Methods inherited from class com.willowtreeapps.android.shared.lv.AmazingAdapter
bindSectionHeader, configurePinnedHeader, getAmazingView, getPinnedHeaderState, getView, onScroll, onScrollStateChanged
 
Methods inherited from class android.widget.BaseAdapter
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterAdapter

public FilterAdapter()
Method Detail

setDataManually

public void setDataManually(List<android.util.Pair<String,List<T>>> data)

setData

public void setData(List<T> unSectionedList)

clear

public void clear()

replaceDataInSection

public void replaceDataInSection(String section,
                                 List<T> dataForSection)

getCount

public int getCount()
Specified by:
getCount in interface android.widget.Adapter

getItem

public T getItem(int position)
Specified by:
getItem in interface android.widget.Adapter

getItemId

public long getItemId(int position)
Specified by:
getItemId in interface android.widget.Adapter

getPositionForSection

public int getPositionForSection(int section)
Specified by:
getPositionForSection in interface android.widget.SectionIndexer
Specified by:
getPositionForSection in class AmazingAdapter

getSectionForPosition

public int getSectionForPosition(int position)
Specified by:
getSectionForPosition in interface android.widget.SectionIndexer
Specified by:
getSectionForPosition in class AmazingAdapter

getSections

public String[] getSections()
Specified by:
getSections in interface android.widget.SectionIndexer
Specified by:
getSections in class AmazingAdapter

getSectionsWithFullName

public String[] getSectionsWithFullName()

isPositionTopOfSection

public boolean isPositionTopOfSection(int position)

isPositionBottomOfSection

public boolean isPositionBottomOfSection(int position)

getFilter

public android.widget.Filter getFilter()
Specified by:
getFilter in interface android.widget.Filterable


Copyright © 2011. All Rights Reserved.